package com.boby.lib_common.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class DateUtil {
    public static String formatTimeHHmm( long timeValue) {
        SimpleDateFormat sdf = new SimpleDateFormat("H:mm", Locale.getDefault());
        Date date = new Date(timeValue);
       return sdf.format(date);
    }
    public static String formatTimeHHmmss( long timeValue) {
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
        Date date = new Date(timeValue);
        return sdf.format(date);
    }
}
